package cn.kgc.springboot.common;

/**
 * @author: mosin
 * @version: v1.0  2022/8/1
 * 状态码和提示信息枚举
 */
public enum CodeMsg {

    SUCCESS("操作成功",200),
    ERROR("操作失败",500),
    LAY_SUCCESS("查询成功",0),
    SUBMENU_EXIS("包含子菜单,不能删除",500),
    USER_ROLE_EXIS("角色被占用,不能删除",500);

    private String msg;
    private Integer code;

    CodeMsg(String msg,Integer code){
        this.msg = msg;
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public Integer getCode() {
        return code;
    }
}
